home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI O2 Out of Box Experience 2.2
/
SGI O2 Out of Box Experience 2.2.iso
/
SysTour
/
framing.script
< prev
next >
Wrap
Text File
|
1998-05-26
|
1KB
|
69 lines
<SCRIPT LANGUAGE="JavaScript">
<!-- Generate activity frames
function document_base() {
var docPath = document.location;
var suffixChar = docPath.length - 5;
var docPrefix = docPath.substring(0, suffixChar);
return docPrefix;
}
function activity_page(activity) {
return document_base() + '#' + activity + '_activities.html';
}
function jump_location(activity) {
return document_base() + '#' + activity + '.html';
}
function cache_jump(activity) {
document.cookie = jump_location(activity);
}
function frame_activity(activity) {
var mod_page = jump_location(activity);
var act_page = activity_page(activity);
document.open("text/plain");
document.writeln('<HTML>');
document.writeln('<FRAMESET ROWS="50%,50%">');
document.writeln('<FRAME SRC=' + mod_page + 'NAME="MODULE" SCROLLING="auto" NORESIZE>"');
document.writeln('<FRAMESET COLS="160,565">');
document.writeln('<FRAME MARGINWIDTH="0" SRC="" NAME="RETURN" SCROLLING="NO" NORESIZE>');
document.writeln('<FRAME SRC=' + act_page + 'NAME="ACTIVITY" SCROLLING="AUTO" NORESIZE>');
document.writeln('</FRAMESET>');
document.writeln('</FRAMESET>');
document.writeln('</HTML>');
document.close();
return true;
}
function show_activity(message) {
top.status = message;
return true;
}
// end of activity generation code -->
</SCRIPT>